Skip to content

Add Hegel DataFusion SQL and IPC framing tests and trim test setup - #12339

Open
lwwmanning wants to merge 3 commits into
developfrom
wm/hegel-datafusion-and-ipc-framing
Open

lwwmanning wants to merge 3 commits into
developfrom
wm/hegel-datafusion-and-ipc-framing

Conversation

@lwwmanning

@lwwmanning lwwmanning commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Hegel differential SQL property test in vortex-datafusion comparing multi-chunk, small-zone Vortex files across scan_v2 = false, scan_v2 = true, and v2::VortexTable against MemTable, and a synchronous Hegel chunk-split and truncation suite for vortex-ipc's sans-IO MessageDecoder. Consolidates duplicated VortexOpener, RecordBatch, and schema-evolution boilerplate across vortex-datafusion tests while parameterizing remaining opener and schema-evolution invariants over scan_v2 in [false, true] for a net reduction of 645 lines.

Assisted by Antigravity.

Adds a Hegel differential SQL property test in vortex-datafusion comparing multi-chunk, small-zone Vortex files across scan_v2 = false, scan_v2 = true, and v2::VortexTable against MemTable, and a synchronous Hegel chunk-split and truncation suite for vortex-ipc's sans-IO MessageDecoder. Consolidates duplicated VortexOpener, RecordBatch, and schema-evolution boilerplate across vortex-datafusion tests while parameterizing remaining opener and schema-evolution invariants over scan_v2 in [false, true] for a net reduction of 811 lines.

Assisted by Antigravity.

Signed-off-by: Will Manning <will@willmanning.io>
@lwwmanning lwwmanning added the changelog/skip Do not list PR in the changelog label Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T19:22:20.843321Z 5d106bb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vortex-roborev-bot

vortex-roborev-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

roborev: Combined Review (6ed344f)

Verdict: No issues found.


Reviewers: claude-code | Synthesis: claude-code, 0s | Total: 1m16s, cost partial ~$0.85

vortex-roborev-bot[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@codspeed

codspeed Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

Warning

vortex-data has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed.

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 2 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 2177 untouched benchmarks
⏩ 164 skipped benchmarks1


Comparing wm/hegel-datafusion-and-ipc-framing (6ed344f) with develop (4525dfa)

Open in CodSpeed

Footnotes

  1. 164 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@lwwmanning lwwmanning left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted by Claude Opus 5.5 on Will's behalf.

The consolidation holds up. Most deleted opener and schema evolution tests reappear as merged rstest cases over scan_v2, and the IPC chunk split test is new coverage. Three deleted checks have no replacement.

  • vortex-datafusion/src/tests/differential.rs line 176: draw_atom never makes an arithmetic predicate. The deleted test_addition_pushdown was the only case that filtered a Vortex table on WHERE a + 5 > 7. Adding one atom such as "i + 5 > 7" to draw_atom restores that coverage.
  • vortex-datafusion/src/persistent/opener.rs line 1409: test_open_preserves_declared_schema_metadata no longer asserts that expected_schema carries the "table" and "partition" metadata. If project_schema dropped the metadata, both sides would have none and the test would still pass. Please restore the two asserts.
  • vortex-datafusion/src/tests/differential.rs line 390: the LIMIT query selects only id. The deleted test_query_file also checked that a LIMIT scan of a chunked file keeps each row's columns together. Selecting id with one or two other columns and comparing each row with the oracle row of the same id would keep that check.

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Addressed all three findings from the review in 4ed23d60a:

  • Added an i + 5 arithmetic predicate atom to draw_atom in vortex-datafusion/src/tests/differential.rs (and restored test_addition_pushdown in vortex-datafusion/src/persistent/tests.rs).
  • Restored the "table" and "partition" metadata assertions on expected_schema in test_open_preserves_declared_schema_metadata.
  • Updated QuerySpec::UnorderedLimit in differential.rs to select id, i, s and assert per-row column correspondence against the oracle.

devin-ai-integration[bot]

This comment was marked as resolved.

@lwwmanning lwwmanning left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted by Claude Opus 5.5 on Will's behalf.

Commit 4ed23d6 resolves my three earlier points. The differential test now draws an i + 5 predicate and checks each LIMIT row's columns against the oracle, and the metadata asserts are back. One small thing: the description still says the PR removes a net 811 lines, but after this commit the net is 737.

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/skip Do not list PR in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant